/*
 * @Author: OBKoro1
 * @Date: 2024-12-23 19:08:57
 * @LastEditTime: 2025-05-20 00:15:35
 * @FilePath: \Smart_Lock\main\dri\Utils.h
 * @Description: 
 * 
 * Copyright (c) 2025 by ${git_name_email}, All Rights Reserved. 
 */

#pragma once

#include <inttypes.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "unistd.h"

#define DelayMs(time) vTaskDelay(time / portTICK_PERIOD_MS)//rots任务延时，不会阻塞
#define DelayUs(time) usleep(time) //睡眠，阻塞式延时，在rots中运行适合短时间的精准延时
